﻿namespace DomainServices.Tools
{
    using System;
    using System.Reflection;

    internal class DataMemberAttributeBuilder : StandardCustomAttributeBuilder
    {
        protected override string MapProperty(PropertyInfo propertyInfo, Attribute attribute)
        {
            if (!propertyInfo.Name.Equals("Order", StringComparison.Ordinal))
            {
                return base.MapProperty(propertyInfo, attribute);
            }
            return null;
        }
    }
}

